import request from '@/config/axios'

//获得训练模型列表
export const getTrainList = async (params) => {
  return await request.getOriginal({
    url: '/amp/module-task/page',
    params
  })
}

export const addTrainModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/module-task/add',
    data
  })
}

export const delTrainModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/module-task/delete',
    data
  })
}
export const editTrainModel = async (data) => {
  return await request.postOriginal({
    url: '/amp/module-task/edit',
    data
  })
}

export const statusOperation = async (params) => {
  return await request.getOriginal({
    url: '/amp/module-task/operation',
    params
  })
}

export const refreshModelProcess = async (params) => {
  return await request.getOriginal({
    url: '/amp/module-task/refresh',
    params
  })
}
